import request from '@/utils/request'

// 查询权重管理列表
export function listWeights(query) {
  return request({
    url: '/hdh/weights/list',
    method: 'get',
    params: query
  })
}

// 查询权重管理详细
export function getWeights(userWeightId) {
  return request({
    url: '/hdh/weights/' + userWeightId,
    method: 'get'
  })
}

// 新增权重管理
export function addWeights(data) {
  return request({
    url: '/hdh/weights',
    method: 'post',
    data: data
  })
}

// 修改权重管理
export function updateWeights(data) {
  return request({
    url: '/hdh/weights',
    method: 'put',
    data: data
  })
}

// 删除权重管理
export function delWeights(userWeightId) {
  return request({
    url: '/hdh/weights/' + userWeightId,
    method: 'delete'
  })
}
